#ifndef __GET_BMP_PATH_H__
#define __GET_BMP_PATH_H__

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>      
#include <dirent.h>
#include <string.h>
#include <pthread.h>
#include <stdlib.h>

typedef struct link_node {
    char *data; // malloc
    struct link_node *prev;
    struct link_node *next;
} LINK_NODE;

typedef struct link_list {
    struct link_node *first;
    struct link_node *end;
    int num;
} LINK_LIST;

LINK_NODE *node_create(char *bmp_path);
LINK_LIST *list_create();
void add_node(LINK_LIST *head, LINK_NODE *node);
void remove_node(LINK_NODE *node);
int get_bmp_path(char *path, LINK_LIST *head);
void delete_head(LINK_LIST *head);
void show_path(LINK_LIST *head);

#endif
